<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script language="javascript" src="jquery-1.7.2.min.js"></script>
<script>
$(document).ready(function(){
	$("a.link").click(function(){
		id=this.getAttribute("id");
		$.ajax({
			type:"get",
			url:"check.php",
			data:"id="+id,
			async:false,
			success:function(kq){
				$("#ketqua").html(kq);
			}
		})
		$(":button").click(function(){
			id=this.getAttribute("id");
			alert("QHOnline.Info - Your link : "+id);
		})
	})
})
</script>
</head>

<body>
	<a href='#' class="link" id="1">Link 1</a> 
	<a href='#' class="link" id="2">Link 2</a> 
	<a href='#' class="link" id="3">Link 3</a> 
    <div id="ketqua"></div>
</body>
</html>